<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>LTE-UNB: RRM/Scheduler/SchedulingAlgorithm.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">LTE-UNB
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">RRM/Scheduler/SchedulingAlgorithm.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_scheduling_algorithm_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00018"></a>00018 <span class="preprocessor">#ifndef _SchedulingAlgorithm_h_</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#define _SchedulingAlgorithm_h_</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span>
<a name="l00021"></a>00021 <span class="preprocessor">#include &lt;itpp/itbase.h&gt;</span>
<a name="l00022"></a>00022 
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="preprocessor">#include &quot;<a class="code" href="_slot_8h.html">Slot.h</a>&quot;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &quot;<a class="code" href="_physical_layer_8h.html">PhysicalLayer.h</a>&quot;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &quot;<a class="code" href="_link_adaptation_8h.html">LinkAdaptation.h</a>&quot;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &quot;<a class="code" href="_physical_resource_block_8h.html">PhysicalResourceBlock.h</a>&quot;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &quot;<a class="code" href="_time_manager_8h.html">TimeManager.h</a>&quot;</span>
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 <span class="keyword">using namespace </span>std;
<a name="l00034"></a>00034 <span class="keyword">using namespace </span>itpp;
<a name="l00035"></a>00035 
<a name="l00036"></a>00036 <span class="keyword">namespace </span>Scheduler
<a name="l00037"></a>00037 {
<a name="l00038"></a>00038 
<a name="l00043"></a><a class="code" href="class_scheduler_1_1_scheduling_algorithm.html">00043</a> <span class="keyword">class </span><a class="code" href="class_scheduler_1_1_scheduling_algorithm.html">SchedulingAlgorithm</a>
<a name="l00044"></a>00044 {
<a name="l00045"></a>00045    <span class="keyword">public</span>:
<a name="l00046"></a>00046 
<a name="l00051"></a>00051       <a class="code" href="class_scheduler_1_1_scheduling_algorithm.html">SchedulingAlgorithm</a>();
<a name="l00052"></a>00052       
<a name="l00057"></a>00057       <span class="keyword">virtual</span> ~<a class="code" href="class_scheduler_1_1_scheduling_algorithm.html">SchedulingAlgorithm</a>();
<a name="l00058"></a>00058 
<a name="l00062"></a>00062       <span class="keyword">virtual</span> <span class="keywordtype">void</span> setParameters();
<a name="l00063"></a>00063       
<a name="l00068"></a>00068       <span class="keyword">virtual</span> <span class="keywordtype">void</span> initialize();
<a name="l00069"></a>00069       
<a name="l00074"></a>00074       <span class="comment">//virtual void frequencySchedule();</span>
<a name="l00075"></a>00075       
<a name="l00080"></a>00080       <span class="comment">//virtual void antennaSchedule();</span>
<a name="l00081"></a>00081       
<a name="l00086"></a>00086       <span class="keyword">virtual</span> <span class="keywordtype">void</span> schedule( <span class="keyword">const</span> ivec&amp; users, 
<a name="l00087"></a>00087                      <a class="code" href="class_physical_layer_1_1_physical_layer.html">PhysicalLayer::PhysicalLayer</a>* pl, <span class="keywordtype">int</span> Direction);
<a name="l00092"></a><a class="code" href="class_scheduler_1_1_scheduling_algorithm.html#aa9d208f799fe848de0ee37e8c90c59e4">00092</a>       ivec <a class="code" href="class_scheduler_1_1_scheduling_algorithm.html#aa9d208f799fe848de0ee37e8c90c59e4">schedulerUsers_</a>;
<a name="l00093"></a>00093       
<a name="l00098"></a>00098       <span class="keywordtype">int</span> schedulerUsers_R (<span class="keywordtype">int</span> index1);
<a name="l00099"></a>00099       
<a name="l00104"></a>00104       <span class="keywordtype">int</span> j1_R ();
<a name="l00105"></a>00105       
<a name="l00111"></a>00111       <span class="keywordtype">int</span> index_R (<span class="keywordtype">int</span> j11);
<a name="l00112"></a>00112       
<a name="l00113"></a>00113       <span class="keywordtype">int</span> ind[200];
<a name="l00114"></a>00114    
<a name="l00115"></a>00115       <span class="keywordtype">int</span> j1[1];
<a name="l00116"></a>00116      
<a name="l00117"></a>00117       
<a name="l00118"></a>00118 
<a name="l00119"></a>00119 
<a name="l00120"></a>00120              
<a name="l00121"></a>00121    <span class="keyword">protected</span>:
<a name="l00122"></a>00122      
<a name="l00123"></a>00123       
<a name="l00127"></a>00127       <span class="keyword">virtual</span> <span class="keywordtype">void</span> configurePRBs( <a class="code" href="class_physical_layer_1_1_physical_layer.html">PhysicalLayer::PhysicalLayer</a>* pl );
<a name="l00128"></a>00128       
<a name="l00133"></a>00133       <span class="keyword">virtual</span> <span class="keywordtype">void</span> configurePRBsPerSlot( <a class="code" href="class_physical_layer_1_1_physical_layer.html">PhysicalLayer::PhysicalLayer</a>* pl );
<a name="l00134"></a>00134       
<a name="l00138"></a>00138       <span class="keyword">virtual</span> <span class="keywordtype">double</span> calculateTimeMetric( <span class="keywordtype">double</span> averageCQI, 
<a name="l00139"></a>00139                                           <span class="keywordtype">double</span> throughput ) = 0;
<a name="l00140"></a>00140       
<a name="l00145"></a>00145       <span class="keyword">virtual</span> <span class="keywordtype">double</span> calculateFrequencyMetric( <span class="keywordtype">double</span> averageCQI, 
<a name="l00146"></a>00146                                                <span class="keywordtype">double</span> throughput ) = 0;
<a name="l00147"></a>00147       
<a name="l00152"></a>00152       <span class="keyword">virtual</span> <span class="keywordtype">double</span> calculateSpaceMetric( <span class="keywordtype">double</span> averageCQI, 
<a name="l00153"></a>00153                                            <span class="keywordtype">double</span> throughput  ) = 0;
<a name="l00154"></a>00154       
<a name="l00159"></a><a class="code" href="class_scheduler_1_1_scheduling_algorithm.html#aaeb7c63b29b6da2aa0349db2d7367338">00159</a>       <span class="keywordtype">int</span> <a class="code" href="class_scheduler_1_1_scheduling_algorithm.html#aaeb7c63b29b6da2aa0349db2d7367338">numberUsersPerSlot_</a>;   
<a name="l00160"></a>00160       
<a name="l00165"></a><a class="code" href="class_scheduler_1_1_scheduling_algorithm.html#a929f906a8c74c8ca0aa5e11364860e3f">00165</a>       <span class="keywordtype">int</span> <a class="code" href="class_scheduler_1_1_scheduling_algorithm.html#a929f906a8c74c8ca0aa5e11364860e3f">numberAntennas_</a>;   
<a name="l00166"></a>00166       
<a name="l00171"></a><a class="code" href="class_scheduler_1_1_scheduling_algorithm.html#afb7589c81ca99ec37a812ad1dce9899c">00171</a>       <span class="keywordtype">bool</span> <a class="code" href="class_scheduler_1_1_scheduling_algorithm.html#afb7589c81ca99ec37a812ad1dce9899c">sameUserAtSlots_</a>;
<a name="l00172"></a>00172       
<a name="l00173"></a>00173       
<a name="l00174"></a>00174         
<a name="l00179"></a>00179       <span class="keyword">virtual</span> <span class="keywordtype">void</span> timeSchedule( <span class="keyword">const</span> ivec&amp; users, ivec&amp; scheduledUsers );
<a name="l00180"></a>00180       
<a name="l00185"></a><a class="code" href="class_scheduler_1_1_scheduling_algorithm.html#aa0a3c32bce2ae7fc5025b6320dc30d00">00185</a>       <a class="code" href="class_link_adaptation_1_1_link_adaptation.html">LinkAdaptation::LinkAdaptation</a>* <a class="code" href="class_scheduler_1_1_scheduling_algorithm.html#aa0a3c32bce2ae7fc5025b6320dc30d00">linkAdaptation_</a>;
<a name="l00186"></a>00186       
<a name="l00187"></a>00187       
<a name="l00188"></a>00188       
<a name="l00193"></a><a class="code" href="class_scheduler_1_1_scheduling_algorithm.html#a58dc8abd438b90c94b0371472e889328">00193</a>       Array&lt; vec &gt; <a class="code" href="class_scheduler_1_1_scheduling_algorithm.html#a58dc8abd438b90c94b0371472e889328">usersFrequencies_</a>;
<a name="l00194"></a>00194       
<a name="l00199"></a><a class="code" href="class_scheduler_1_1_scheduling_algorithm.html#ad760ab2b23d633f82335cdbbf5c8e387">00199</a>       Array&lt; Array&lt; vector&lt; PhysicalLayer::PhysicalResourceBlock* &gt; &gt; &gt; <a class="code" href="class_scheduler_1_1_scheduling_algorithm.html#ad760ab2b23d633f82335cdbbf5c8e387">usersPRBs_</a>;   
<a name="l00200"></a>00200       
<a name="l00205"></a><a class="code" href="class_scheduler_1_1_scheduling_algorithm.html#a6d02540b2a0b0470f700d98fd1439346">00205</a>       <a class="code" href="class_time_manager_1_1_time_manager.html">TimeManager::TimeManager</a>* <a class="code" href="class_scheduler_1_1_scheduling_algorithm.html#a6d02540b2a0b0470f700d98fd1439346">timeManager_</a>;
<a name="l00206"></a>00206    
<a name="l00207"></a>00207    <span class="keyword">private</span>:
<a name="l00208"></a>00208    
<a name="l00209"></a>00209       <span class="keywordtype">int</span> counter;
<a name="l00210"></a>00210       
<a name="l00211"></a>00211       <span class="keywordtype">double</span> totalSINR_;
<a name="l00212"></a>00212 
<a name="l00213"></a>00213 };
<a name="l00214"></a>00214 
<a name="l00215"></a>00215 };
<a name="l00216"></a>00216 
<a name="l00217"></a>00217 <span class="preprocessor">#endif</span>
<a name="l00218"></a>00218 <span class="preprocessor"></span>
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Friends</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Thu Oct 25 2012 22:25:34 for LTE-UNB by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
